#ifndef STM32WIG_H
#define STM32WIG_H

#include <QWidget>
#include <QDebug>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
#include <QTimer>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QSqlError>
#include <QDateTime>
#include "setwig.h"
#include "count.h"

namespace Ui {
class Stm32Wig;
}

class Stm32Wig : public QWidget
{
    Q_OBJECT

public:
    explicit Stm32Wig(QWidget *parent = 0);
    ~Stm32Wig();

public slots:
    void dataUpSlot(const QByteArray &msg);
    void receivedataSlot();
    void updateTime();

private:
    Ui::Stm32Wig *ui;
    SetWig *setwig;
    QTimer *timer;
    QTimer *datetime;
    Count *count;
    QSqlDatabase m_db;
    QSqlQuery* m_query;

    double lcd1;
    int lcd2;

};

#endif // STM32WIG_H
